package com.exam.openFeign;

import com.exam.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description
 * @Date 2023/2/2
 * @Author ChengKe
 */

@FeignClient(value = "third-party" ,contextId = "third-party")
public interface ThirdPartyClient {
    /**
     * 阿里云存储
     */
    @GetMapping("/thirdService/oss/policy")
    Result policy() ;

    /**
     * 短信验证
     */
    @GetMapping("/thirdService/email/getAuthCode")
    Result getAuthCode(@RequestParam("receiver") String receiver);

    //todo  支付
}
